#!/usr/bin/python3
# -*- coding: utf8 -*-
# Date   : 2021/02/12
# Author : Kwan
# Email  : allenxian@live.com
# Blog   : https://my.oschina.net/u/4173440

from flask import Blueprint, render_template, redirect, url_for
from flask_login import login_required


# 收费记录
paid = Blueprint(name='paid', import_name='flasky', url_prefix='/paid', template_folder='views/templates')


@paid.route('/')
@login_required
def default():
    """
    时租收费记录
    """
    return redirect(url_for('paid.detail'))


@paid.route('/detail')
@login_required
def detail():
    """
    收费明细
    """
    return render_template('paid/default.html')


@paid.route('/classes')
@login_required
def classes():
    """
    更次明细
    """
    return render_template('paid/default.html')